Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iop parsing: make the PictureGraphic data size check less restricitve #531

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

martonmiklos
Copy link
Contributor

@martonmiklos martonmiklos commented Jan 8, 2025

I came across an implement (Kverneland Andex1304) which contains a PictureGraphics with 0x0 actual size and 0 raw data size. Later in the pool it contains the same PictureGraphics object with correct dimensions, but the parser bailed out on the first zero size.

Fixes martonmiklos/AgIsoVirtualTerminal#2

How has this been tested?

Built AgIsoVt with this commit an the Kverneland Andex1304 loads fine.

@martonmiklos martonmiklos force-pushed the fix_picture_size_check branch 3 times, most recently from 8a7fe7b to f2ff899 Compare January 8, 2025 21:19
@martonmiklos martonmiklos changed the title iop parsing: make the PictureObject data size check less restricitve iop parsing: make the PictureGraphic data size check less restricitve Jan 8, 2025
I came across an implement (Kverneland Andex1304) which contains a
PictureGraphics with 0x0 actual size and 0 raw data size.
Later it contains the same PictureGraphics object with correct
dimensions, but the parser bailed out on the first zero size.
@martonmiklos martonmiklos force-pushed the fix_picture_size_check branch from f2ff899 to c02843d Compare January 8, 2025 21:24
@martonmiklos
Copy link
Contributor Author

Hi folks, I have no idea about the source of the CI failure, the unit tests are passed here locally:
kép

@GwnDaan
Copy link
Member

GwnDaan commented Jan 8, 2025

Yeah some unit tests are a bit unpredictable, they occasionaly throw an error. I reran the tests and now it passes...

@GwnDaan GwnDaan added bug Something isn't working iso: virtual terminal Related to the ISO-11783:7 standard labels Jan 8, 2025
@ad3154 ad3154 merged commit 6cc672f into Open-Agriculture:main Jan 9, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iso: virtual terminal Related to the ISO-11783:7 standard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graceful parse of malformed picture in the IOP
3 participants